<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title></title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    {css file="__PUBLIC__/css/category.css"/}
    {jquery/}
    {jsconst/}
    {js file="__PUBLIC__/js/category.js"/}
</head>
<body style="background:#E6F7FF">
    <!-- <p class="weizhi"><strong>当前位置</strong>:　内容管理 > 栏目管理</p> -->
    <p class="dingji"><a href="{|U('addshow')}">添加顶级栏目</a></p>
    <div id="table">
        <table width="1000px">
            <tr>
                <th width="100">栏目ID</th>
                <th>栏目名称</th>
                <th width="270">操作</th>
            </tr>
            {if value="$channel"}
            {foreach from="$channel" key="$key" value="$v"}
            <tr>
                <td>{$v.cid}</td>
                <td>
                    {if value="$v.pid!=0"}|{/if}{$v.html}{$v.catname}
                </td>
                <td>
                    <a href="{|U('addshow',array('pid'=>$v['cid']))}">添加子栏目</a> |
                        <a href="{|U('editshow',array('cid'=>$v['cid']))}">编辑</a> |
                    {if value="$v.issend"}
                        <a href="{|U('arc/addshow',array('cid'=>$v['cid']))}">添加文章</a> |
                    {/if}
                    <a href="" cid="{$v.cid}" class="delcategory">删除栏目</a>
                </td>
            </tr>
            {/foreach}
            {else}
            <tr><td colspan="3" text-align: center;>对不起，暂无任何数据</td></tr>
            {/if}
        </table>
        <div id="div_page">{$page}</div>
    </div>
</body>
</html>
